<!-- BEGIN: main -->

<div class="step_bar clearfix">
    <a class="btn btn-orange" title="{LANG.cart_check_cart}" href="#">{LANG.cart_check_cart}</a>
    <a class="btn btn-orange" title="{LANG.cart_order}" href="{link_order_all}" id="cart_next">{LANG.cart_order}</a>
</div>
<br>
<!-- BEGIN: errortitle -->
<ul style="margin-top: 10px;color:#ff0000;text-align:right;">
    <!-- BEGIN: errorloop -->
    <li class="clearfix">{ERROR_NUMBER_PRODUCT}</li>
    <!-- END: errorloop -->
</ul>
<!-- END: errortitle -->
<form action="{LINK_CART}" method="post" id="fpro">
    <input type="hidden" value="1" name="save"/>
   <div class="cart-info">
        <table class="cart_product">
				<tr>
					  <th class="total">{LANG.order_no_products}</th>
						<th class="bg image">{LANG.cart_images}</th>
						<th class="name">{LANG.cart_products}</th>
						<th class="bg model">{LANG.cart_price} ({unit_config})</th>
						<th class="quantity">{LANG.cart_numbers}</th>
						  <th class="bg total">{LANG.cart_unit}</th>
						 <th class="total">Action</th>
				</tr>
				  <!-- BEGIN: rows -->
				  <tr>
				   <td class="total">{stt}</td>
					<td class="bg image">
					<a href="#">
					<img src="{img_pro}" alt="{link_pro}" height="50" width="50"></a></td>
					<td  class="name"><a title="{title_pro}" href="{link_pro}">{title_pro}</a></td>
					<!-- BEGIN: price2 -->
					<td class="bg model">{product_price}</td>
						<!-- END: price2 -->
					<td class="quantity">
					<input type="text" size="1" value="{pro_num}" name="listproid[{id}]" id="{id}" class="span1" />
					 
					 </td>
					 <td class="bg price">{product_unit}</td>
					 <td class="total">
					   <a class="close remove_cart" title="{LANG.cart_remove_pro}" href="{link_remove}"></a>
					  </td>
				 
				  </tr>
				  <!-- END: rows -->
        
        </table>
     </div>
   
		<div class="pull-right">
			<div class="span4 pull-right">
				<table class="table table-striped table-bordered ">
					  
					  <tr>
						<td><span class="extra bold totalamout">Tổng cộng :</span></td>
						<td><span class="bold totalamout"><span id="total"></span> {unit_config}</span></td>
					  </tr>
					   
				</table>
				<div class="button-group">
    <input type="submit" name="cart_order" title="{LANG.cart_order}" value="{LANG.cart_order}" class="button primary">
				<input type="submit" name="cart_update" title="{LANG.cart_update}" value="{LANG.cart_update}" class="button">
</div>
				
			</div>
        </div>
   
</form>
<script type="text/javascript">
	var urload = nv_siteroot + 'index.php?' + nv_lang_variable + '=' + nv_sitelang + '&' + nv_name_variable + '=' + nv_module_name + '&' + nv_fc_variable + '=loadcart';
    $("#total").load(urload+'&t=2');
	$(function(){
        $("a.remove_cart").click(function(){
            var href = $(this).attr("href");
            $.ajax({
                type: "GET",
                url: href,
                data: '',
                success: function(data){
                    if (data != '') {
                        $("#" + data).html('');
                        $("#cart_"+nv_module_name).load(urload);
                        $("#total").load(urload+'&t=2');
                    }
                }
            });
            return false;
        });
    });
</script>
<!-- END: main -->
